﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using EasyQuartz;
using Quartz;

namespace Bzzb.Util
{
    //[TriggerCron("0/1 * * * * ? *")]
    public class MyJob : IJob
    {
        public async Task Execute(IJobExecutionContext context)
        {
            Console.WriteLine($"{DateTime.Now} 开始生成数据");
            using (var httpClient = new HttpClient())
            {
                var requestUri = "http://localhost:5000/api/generatedata/index";
                var httpResponseMessage = await httpClient.PostAsync(requestUri, null);
                //Console.WriteLine(httpResponseMessage);
            }
        }
    }
}
